package com.aspose.cells;

class zafb extends zaep {
   private com.aspose.cells.b.a.d.zn b;
   private char c;
   private StringBuilder d = new StringBuilder();

   public static boolean a(char var0) {
      return "\t\n\r ".indexOf(var0) != -1;
   }

   public char e() throws Exception {
      char var1 = ' ';

      while(!this.f()) {
         var1 = this.g();
         if (!a(var1)) {
            break;
         }
      }

      return var1;
   }

   public boolean f() throws Exception {
      return this.b.c() == -1;
   }

   public char g() throws Exception {
      return (char)this.b.d();
   }

   public String h() throws Exception {
      StringBuilder var1 = new StringBuilder();
      var1.append(this.c);

      while(!this.f()) {
         char var2 = this.g();
         if (a(var2) || var2 == '=' || var2 == '>') {
            this.c = var2;
            break;
         }

         var1.append(var2);
      }

      return com.aspose.cells.b.a.zr.a(var1).trim();
   }

   public String i() throws Exception {
      StringBuilder var1 = new StringBuilder();
      if (this.c == '=') {
         char var2 = this.g();
         if (var2 != '\'' && var2 != '"') {
            var1.append(var2);

            while(!this.f()) {
               var2 = this.g();
               if (a(var2)) {
                  break;
               }

               if (var2 == '>') {
                  this.c = var2;
                  return com.aspose.cells.b.a.zr.a(var1).trim();
               }

               if (var2 == '"') {
                  var1.append('\'');
               } else {
                  var1.append(var2);
               }
            }
         } else {
            char var3 = var2;

            while(!this.f()) {
               var2 = this.g();
               if (var2 == var3) {
                  break;
               }

               var1.append(var2);
            }
         }

         this.c = this.e();
      }

      return com.aspose.cells.b.a.zr.a(var1).trim();
   }

   public void a(String var1, String var2) {
      zaeo var3 = new zaeo(var1, var2);
      this.a(var3);
   }

   public StringBuilder j() {
      return this.d;
   }

   public com.aspose.cells.b.a.d.zn k() {
      return this.b;
   }

   public void a(com.aspose.cells.b.a.d.zn var1) {
      this.b = var1;
   }

   public char l() {
      return this.c;
   }

   public void b(char var1) {
      this.c = var1;
   }
}
